# python3 gpioTest.py
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
header = 40
header2 = 38
GPIO.setup(header, GPIO.OUT)
GPIO.setup(header2, GPIO.OUT)
a = 0
while a < 20:
    a = a+1
    time.sleep(1.0)
    GPIO.output(header,GPIO.HIGH)
    GPIO.output(header2,GPIO.LOW)
    time.sleep(1.0)
    GPIO.output(header,GPIO.LOW)
    GPIO.output(header2,GPIO.HIGH)

time.sleep(1.0)
GPIO.output(header,GPIO.LOW)
GPIO.output(header,GPIO.LOW)
GPIO.cleanup()

